<%@ language="javascript" %>
<%
dim username = request.form("username")
dim password = request.form("password")
dim email = request.form("email")
dim error = false
function validate (uname, pword, eMail) {
	if (uname = "") {
		error = true;
		Response.Write("Username must not be empty.");
	}
	if (pword = "") {
		error = true;
		Response.Write("Password must not be empty.");
	}
	if (eMail = "") {
		error = true;
		Response.Write("E-mail must not be empty.");
	}
	if (error = true) {
		Response.Write("<a href = \"createAccount.aspx\">Go back </a>");
	}
	if (error = false) {
		Response.Write ("SUCCESS!")
	}
}

validate (username, password, email)
%>
